﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SGRapidForm.Common;
using SGRapidForm.Permission.Service.Interface;
using SGRapidForm.Permission.Entity;

namespace SGDemo.Permission
{
    public partial class BulkEditUsers : System.Web.UI.Page
    {
        private IPermissionService permissionService = ServiceProxyFactory.Create<IPermissionService>("permissionservice");

        protected void Page_Load(object sender, EventArgs e)
        {
            JSManager.RegAjax(Header, this.GetType().BaseType);
        }

        /// <summary>
        /// 批量更新
        /// </summary>
        [AjaxPro.AjaxMethod]
        public bool BulkEdit(string columnSettings, string keyids)
        {
            return permissionService.User_BulkEdit(columnSettings, keyids);
        }
    }
}